package com.heima.utils.thread;

/**
 * @author 陈辉
 * @data 2024 16:22
 */

public class ApThreadLocalUtil {
    private static ThreadLocal<Integer> threadLocal = new ThreadLocal();


    public static void set(Integer userId){
        threadLocal.set(userId);
    }

    public static Integer get(){
        return threadLocal.get();
    }

    public static void clear(){
        threadLocal.remove();
    }
}
